<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.13.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.TLocaleInfo类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.13.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_t_locale_info.html">TLocaleInfo</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classawtk_1_1_t_locale_info-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">awtk.TLocaleInfo类 参考</div></div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.TLocaleInfo 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_t_locale_info.png" usemap="#awtk.TLocaleInfo_map" alt=""/>
  <map id="awtk.TLocaleInfo_map" name="awtk.TLocaleInfo_map">
<area href="classawtk_1_1_t_locale_info_xml.html" alt="awtk.TLocaleInfoXml" shape="rect" coords="0,56,128,80"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a26cf939d39d026ef64778b92ab22dc46" id="r_a26cf939d39d026ef64778b92ab22dc46"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a26cf939d39d026ef64778b92ab22dc46">TLocaleInfo</a> (long <a class="el" href="#a47d47faf764ae79b3a311e891d2c9de9">nativeObj</a>)</td></tr>
<tr class="separator:a26cf939d39d026ef64778b92ab22dc46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ababf4f6e13254e071b256a9298c0192b" id="r_ababf4f6e13254e071b256a9298c0192b"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ababf4f6e13254e071b256a9298c0192b">tr</a> (String text)</td></tr>
<tr class="separator:ababf4f6e13254e071b256a9298c0192b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7161f4ed58d350eadf199dc99b32d8e4" id="r_a7161f4ed58d350eadf199dc99b32d8e4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7161f4ed58d350eadf199dc99b32d8e4">change</a> (String language, String country)</td></tr>
<tr class="separator:a7161f4ed58d350eadf199dc99b32d8e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07f49ebed086ebef45978a49fba454df" id="r_a07f49ebed086ebef45978a49fba454df"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a07f49ebed086ebef45978a49fba454df">off</a> (int id)</td></tr>
<tr class="separator:a07f49ebed086ebef45978a49fba454df"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:aa649445a0c9b2246d7da383e2414d4f4" id="r_aa649445a0c9b2246d7da383e2414d4f4"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_locale_info.html">TLocaleInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa649445a0c9b2246d7da383e2414d4f4">cast</a> (long <a class="el" href="#a47d47faf764ae79b3a311e891d2c9de9">nativeObj</a>)</td></tr>
<tr class="separator:aa649445a0c9b2246d7da383e2414d4f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9467abb3b63bdff7b4c4588d0d94f12" id="r_ad9467abb3b63bdff7b4c4588d0d94f12"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_locale_info.html">TLocaleInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad9467abb3b63bdff7b4c4588d0d94f12">instance</a> ()</td></tr>
<tr class="separator:ad9467abb3b63bdff7b4c4588d0d94f12"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a47d47faf764ae79b3a311e891d2c9de9" id="r_a47d47faf764ae79b3a311e891d2c9de9"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a47d47faf764ae79b3a311e891d2c9de9">nativeObj</a></td></tr>
<tr class="separator:a47d47faf764ae79b3a311e891d2c9de9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>本地化信息。提供字符串翻译数据管理，当前语言改变的事件通知等等。 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a26cf939d39d026ef64778b92ab22dc46" name="a26cf939d39d026ef64778b92ab22dc46"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26cf939d39d026ef64778b92ab22dc46">&#9670;&#160;</a></span>TLocaleInfo()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TLocaleInfo.TLocaleInfo </td>
          <td>(</td>
          <td class="paramtype">long</td>          <td class="paramname"><span class="paramname"><em>nativeObj</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>通过nativeObj构造Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="aa649445a0c9b2246d7da383e2414d4f4" name="aa649445a0c9b2246d7da383e2414d4f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa649445a0c9b2246d7da383e2414d4f4">&#9670;&#160;</a></span>cast()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_locale_info.html">TLocaleInfo</a> awtk.TLocaleInfo.cast </td>
          <td>(</td>
          <td class="paramtype">long</td>          <td class="paramname"><span class="paramname"><em>nativeObj</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>把nativeObj转换层Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

<p>被 <a class="el" href="classawtk_1_1_t_locale_info_xml.html#aece031706314090c97649f81ea0506c6">awtk.TLocaleInfoXml</a> 重载.</p>

</div>
</div>
<a id="a7161f4ed58d350eadf199dc99b32d8e4" name="a7161f4ed58d350eadf199dc99b32d8e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7161f4ed58d350eadf199dc99b32d8e4">&#9670;&#160;</a></span>change()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TLocaleInfo.change </td>
          <td>(</td>
          <td class="paramtype">String</td>          <td class="paramname"><span class="paramname"><em>language</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String</td>          <td class="paramname"><span class="paramname"><em>country</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置当前的国家和语言。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">language</td><td>语言。 </td></tr>
    <tr><td class="paramname">country</td><td>国家或地区。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ad9467abb3b63bdff7b4c4588d0d94f12" name="ad9467abb3b63bdff7b4c4588d0d94f12"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad9467abb3b63bdff7b4c4588d0d94f12">&#9670;&#160;</a></span>instance()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_locale_info.html">TLocaleInfo</a> awtk.TLocaleInfo.instance </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取缺省locale_info。</p>
<dl class="section return"><dt>返回</dt><dd>返回locale_info对象。 </dd></dl>

</div>
</div>
<a id="a07f49ebed086ebef45978a49fba454df" name="a07f49ebed086ebef45978a49fba454df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07f49ebed086ebef45978a49fba454df">&#9670;&#160;</a></span>off()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TLocaleInfo.off </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>id</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>注销指定事件的处理函数。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">id</td><td>locale_info_on返回的ID。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ababf4f6e13254e071b256a9298c0192b" name="ababf4f6e13254e071b256a9298c0192b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ababf4f6e13254e071b256a9298c0192b">&#9670;&#160;</a></span>tr()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.TLocaleInfo.tr </td>
          <td>(</td>
          <td class="paramtype">String</td>          <td class="paramname"><span class="paramname"><em>text</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel inline">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>翻译字符串。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>待翻译的文本。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回翻译之后的字符串。 </dd></dl>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a47d47faf764ae79b3a311e891d2c9de9" name="a47d47faf764ae79b3a311e891d2c9de9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a47d47faf764ae79b3a311e891d2c9de9">&#9670;&#160;</a></span>nativeObj</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long awtk.TLocaleInfo.nativeObj</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>原生对象。 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<b>TLocaleInfo.java</b></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.2
</small></address>
</div><!-- doc-content -->
</body>
</html>
